package com.webSite.demo.cy.utils;

public class PageUtils {

	private int totalPage;//总页数
	private int[] rainbow;//显示的记录数
	private int rainNum;//当前页
	
	
	public PageUtils() {
		super();
	}
	public PageUtils(int totalPage, int[] rainbow, int rainNum) {
		super();
		this.totalPage = totalPage;
		this.rainbow = rainbow;
		this.rainNum = rainNum;
	}
	
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int[] getRainbow() {
		return rainbow;
	}
	public void setRainbow(int[] rainbow) {
		this.rainbow = rainbow;
	}
	public int getRainNum() {
		return rainNum;
	}
	public void setRainNum(int rainNum) {
		this.rainNum = rainNum;
	}
	public int getNext() {
		return rainNum+1;
	}
	public int getPrev() {
		return rainNum-1;
	}
	
	
}
